package cn.edu.neusoft.yuejian4.yuejian_4.model;

import java.util.List;

import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.Club;
import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.Recentgame;
import cn.edu.neusoft.yuejian4.yuejian_4.listener.List_TListener;
import cn.edu.neusoft.yuejian4.yuejian_4.listener.TListener;
import retrofit2.Call;

/**
 * Created by Lix on 2018/10/10.
 */

public class GameModel extends RetrofitBaseModel {

    public void allGame(List_TListener<Recentgame> listener){
        Call<List<Recentgame>> call = service.allGame();
        callenqueue_list(call,listener);
    }
    public void getGame(int gid, TListener<Recentgame> listener){
        Call<Recentgame> call = service.getGame(gid);
        callenqueue(call,listener);
    }
}
